<?php

defined('_JEXEC') or die();

jimport('joomla.application.component.view');

class Easiv2ViewManageExtensions extends JView {
	
	function display($tpl = null) {
		$this->addToolbar();
		echo "";
		/**
		 * get data from model
		 */
		$this->extensions = $this->get('Extensions');
		$this->localInstallStatus = $this->get('LocalInstallStatus');
		$this->remoteInstanceObjects = $this->get('RemoteInstanceObjects');
		$this->remoteInstallStatus = $this->get('RemoteInstallStatus');
		
		parent::display($tpl);
	}
	
	function addToolbar() {
		JToolbarHelper::title(JText::_('COM_EASIV2_MANAGEEXTENSIONS_VIEW_TITLE'), 'checkin.png');
		JToolbarHelper::addNewX('manageExtensions.install', JText::_('COM_EASIV2_MANAGEEXTENSIONS_VIEW_BUTTON_INSTALL'));
		JToolbarHelper::cancel('manageExtensions.uninstall', JText::_('COM_EASIV2_MANAGEEXTENSIONS_VIEW_BUTTON_UNINSTALL'));
		JToolbarHelper::divider();
		JToolBarHelper::custom('manageExtensions.gotoInstances', 'back', 'back', JText::_('COM_EASIV2_MANAGEEXTENSIONS_VIEW_BUTTON_GOTO_INSTANCEMANAGEMENT'), false);
	}
}